
public class TestMain {
    public static void main(String[] args) {
        Solution s = new Solution();

        String a = "ab#c", b = "ad#c";
        System.out.println(s.backspaceCompare(a,b));

        String c = "ab##", d = "c#d#";
        System.out.println(s.backspaceCompare(c,d));

        String e = "a#c", f = "b";
        System.out.println(s.backspaceCompare(e,f));


    }
}
